package com.ldn.starter.collector;

import com.mybatisflex.core.audit.AuditMessage;
import com.mybatisflex.core.audit.MessageCollector;
import lombok.extern.slf4j.Slf4j;

/**
 * @author 李大牛家的牛 (scafel@163.com)
 * @createDate 2024/8/29 - 14:24
 * @description ...
 **/
@Slf4j
public class MyBatisFlexCollector  implements MessageCollector {
    @Override
    public void collect(AuditMessage message) {
        log.info(message.getFullSql(), message.getElapsedTime());
    }
}
